
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Nacos注册中心 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Nacos-OpenFeign.html" />
    
    
    <link rel="prev" href="Nacos-Introduction.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    说明
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../Design-Patterns/">
            
                <a href="../Design-Patterns/">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" >
            
                <span>
            
                    
                    创建型模式
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1.1" >
            
                <span>
            
                    
                    简单工厂模式
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.2" >
            
                <span>
            
                    
                    工厂方法模式
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.3" data-path="../Design-Patterns/src/main/java/createdmodel/abstractfactorymode/">
            
                <a href="../Design-Patterns/src/main/java/createdmodel/abstractfactorymode/">
            
                    
                    抽象工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.4" data-path="../Design-Patterns/src/main/java/createdmodel/bulidermode/">
            
                <a href="../Design-Patterns/src/main/java/createdmodel/bulidermode/">
            
                    
                    建造者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.5" data-path="../Design-Patterns/src/main/java/createdmodel/prototypemode/">
            
                <a href="../Design-Patterns/src/main/java/createdmodel/prototypemode/">
            
                    
                    原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.6" data-path="../Design-Patterns/src/main/java/createdmodel/singletonmode/">
            
                <a href="../Design-Patterns/src/main/java/createdmodel/singletonmode/">
            
                    
                    单例模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../Design-Patterns/src/main/java/structuredmodel/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/">
            
                    
                    结构型模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.2.1" data-path="../Design-Patterns/src/main/java/structuredmodel/proxymode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/proxymode/">
            
                    
                    代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.2" data-path="../Design-Patterns/src/main/java/structuredmodel/adaptermode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/adaptermode/">
            
                    
                    适配器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.3" data-path="../Design-Patterns/src/main/java/structuredmodel/bridgemode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/bridgemode/">
            
                    
                    桥接模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.4" data-path="../Design-Patterns/src/main/java/structuredmodel/decoratormode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/decoratormode/">
            
                    
                    装饰模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.5" data-path="../Design-Patterns/src/main/java/structuredmodel/facademode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/facademode/">
            
                    
                    外观模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.6" data-path="../Design-Patterns/src/main/java/structuredmodel/flyweightmode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/flyweightmode/">
            
                    
                    享元模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.7" data-path="../Design-Patterns/src/main/java/structuredmodel/compositemode/">
            
                <a href="../Design-Patterns/src/main/java/structuredmodel/compositemode/">
            
                    
                    组合模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../Design-Patterns/src/main/java/behavioralmodel/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/">
            
                    
                    行为型模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.3.1" data-path="../Design-Patterns/src/main/java/behavioralmodel/templatemethodmode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/templatemethodmode/">
            
                    
                    模板方法模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.2" data-path="../Design-Patterns/src/main/java/behavioralmodel/strategymode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/strategymode/">
            
                    
                    策略模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.3" data-path="../Design-Patterns/src/main/java/behavioralmodel/commandmode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/commandmode/">
            
                    
                    命令模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.4" data-path="../Design-Patterns/src/main/java/behavioralmodel/chainofresponsibility/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/chainofresponsibility/">
            
                    
                    责任链模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.5" data-path="../Design-Patterns/src/main/java/behavioralmodel/statemode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/statemode/">
            
                    
                    状态模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.6" data-path="../Design-Patterns/src/main/java/behavioralmodel/observermode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/observermode/">
            
                    
                    观察者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.7" data-path="../Design-Patterns/src/main/java/behavioralmodel/mediatormode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/mediatormode/">
            
                    
                    中介者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.8" data-path="../Design-Patterns/src/main/java/behavioralmodel/iteratormode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/iteratormode/">
            
                    
                    迭代器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.9" data-path="../Design-Patterns/src/main/java/behavioralmodel/visitormode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/visitormode/">
            
                    
                    访问者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.10" data-path="../Design-Patterns/src/main/java/behavioralmodel/mementomode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/mementomode/">
            
                    
                    备忘录模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.11" data-path="../Design-Patterns/src/main/java/behavioralmodel/interpretermode/">
            
                <a href="../Design-Patterns/src/main/java/behavioralmodel/interpretermode/">
            
                    
                    解释器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="./">
            
                <a href="./">
            
                    
                    Nacos
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="Nacos-Introduction.html">
            
                <a href="Nacos-Introduction.html">
            
                    
                    Nacos介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="3.1.2" data-path="Nacos-Registration.html">
            
                <a href="Nacos-Registration.html">
            
                    
                    Nacos注册中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="Nacos-OpenFeign.html">
            
                <a href="Nacos-OpenFeign.html">
            
                    
                    Nacos+OpenFeign
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../Sortings/">
            
                <a href="../Sortings/">
            
                    
                    排序算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../Sortings/src/main/java/com/larscheng/www/InsertionSort/">
            
                <a href="../Sortings/src/main/java/com/larscheng/www/InsertionSort/">
            
                    
                    插入排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../Sortings/src/main/java/com/larscheng/www/shellSort/">
            
                <a href="../Sortings/src/main/java/com/larscheng/www/shellSort/">
            
                    
                    希尔排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" >
            
                <span>
            
                    
                    选择排序
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" >
            
                <span>
            
                    
                    堆排序
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" >
            
                <span>
            
                    
                    希尔排序
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Nacos注册中心</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="nacos&#xFF08;&#x4E8C;&#xFF09;&#xFF1A;springcloudnacos&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;">nacos&#xFF08;&#x4E8C;&#xFF09;&#xFF1A;springcloud+nacos&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;</h2>
<h3 id="&#x524D;&#x8A00;">&#x524D;&#x8A00;</h3>
<p>&#x901A;&#x8FC7;&#x4E0A;&#x4E00;&#x7BC7;&#x6587;&#x7AE0;&#xFF1A;<a href="Nacos-Introduction.html">Nacos&#x4ECB;&#x7ECD; </a>&#x7B80;&#x5355;&#x4E86;&#x89E3;&#x4E86;Nacos&#x7684;&#x53D1;&#x5C55;&#x5386;&#x7A0B;&#x548C;&#x73B0;&#x72B6;&#xFF0C;&#x672C;&#x6587;&#x6211;&#x4EEC;&#x5F00;&#x59CB;Nacos&#x8BD5;&#x6C34;&#x7684;&#x7B2C;&#x4E00;&#x6B65;: <strong>&#x4F7F;&#x7528;Nacos&#x505A;&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;</strong></p>
<blockquote>
<p>&#x4E0A;&#x5468;&#x672B;&#xFF08;7.6&#xFF09;Nacos&#x53D1;&#x5E03;&#x4E86;V1.1.0&#x7248;&#x672C;&#xFF0C;&#x8FD9;&#x6B21;&#x66F4;&#x65B0;&#x652F;&#x6301;&#x7070;&#x5EA6;&#x914D;&#x7F6E;&#x3001;&#x5730;&#x5740;&#x670D;&#x52A1;&#x5668;&#x6A21;&#x5F0F;&#x3001;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5BFC;&#x5165;&#x5BFC;&#x51FA;&#x7B49;&#x5176;&#x4ED6;&#x529F;&#x80FD;&#x3002;&#x611F;&#x89C9;&#x793E;&#x533A;&#x7684;&#x8001;&#x54E5;&#x4EEC;&#x90FD;&#x5F88;&#x9AD8;&#x4EA7;&#x5450;....</p>
</blockquote>
<p>&#x672C;&#x6587;&#x4E3B;&#x8981;&#x901A;&#x8FC7;&#x4E24;&#x4E2A;&#x9879;&#x76EE;&#x6765;&#x5B8C;&#x6210;&#x6F14;&#x793A;&#xFF1A;</p>
<ul>
<li>nacos-provide&#xFF1A;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x8005;</li>
<li>nacos-consumer&#xFF1A;&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;</li>
</ul>
<p><img src="https://raw.githubusercontent.com/larscheng/myImg/master/blogImg/Nacos/20190709155600.png" alt=""></p>
<pre><code>&#x5C06;nacos-provide&#x548C;nacos-consumer&#x6CE8;&#x518C;&#x5230;Nacos-server&#xFF0C;

&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;nacos-consumer&#x901A;&#x8FC7;&#x4E3B;&#x52A8;&#x8F6E;&#x8BE2;&#x83B7;&#x53D6;&#x4ED6;&#x6240;&#x8BA2;&#x9605;&#x6D88;&#x8D39;&#x7684;&#x670D;&#x52A1;&#x4FE1;&#x606F;&#x5217;&#x8868;

nacos-consumer&#x6839;&#x636E;&#x83B7;&#x53D6;&#x5230;&#x7684;&#x670D;&#x52A1;&#x4FE1;&#x606F;&#x5217;&#x8868;&#xFF0C;&#x8FDB;&#x884C;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x3002;
</code></pre><p>&#x719F;&#x6089;SpringCloud+Eureka&#x7684;&#x540C;&#x5B66;&#x9605;&#x8BFB;&#x5B8C;&#x672C;&#x6587;&#x540E;&#x53EF;&#x4EE5;&#x65E0;&#x7F1D;&#x5207;&#x6362;Nacos&#x505A;&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;</p>
<h3 id="&#x6211;&#x7684;&#x73AF;&#x5883;">&#x6211;&#x7684;&#x73AF;&#x5883;</h3>
<ul>
<li>Windows10</li>
<li>JDK8</li>
<li>SpringCloud&#xFF1A;Finchley.RELEASE</li>
<li>SpringBoot&#xFF1A;2.0.4.RELEASE</li>
<li>spring-cloud-alibaba-dependencies&#xFF1A;0.2.2.RELEASE</li>
<li>Nacos-server&#xFF1A;1.0.1</li>
</ul>
<p><strong><em>&#x6CE8;&#xFF1A;Nacos&#x9488;&#x5BF9;&#x4E0D;&#x540C;&#x7248;&#x672C;&#x7684;SpingCloud&#x63D0;&#x4F9B;&#x4E0D;&#x540C;&#x7684;&#x4F9D;&#x8D56;&#xFF0C;&#x5404;&#x4E2A;&#x7248;&#x672C;&#x7684;&#x5BF9;&#x5E94;&#x5173;&#x7CFB;&#x8BF7;&#x53C2;&#x8003;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x7ED9;&#x51FA;&#x7684;&#x8BF4;&#x660E;&#xFF1A;<a href="https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E" target="_blank">&#x7248;&#x672C;&#x8BF4;&#x660E;</a></em></strong></p>
<h3 id="&#x542F;&#x52A8;nacos-server">&#x542F;&#x52A8;Nacos-server</h3>
<p><img src="https://raw.githubusercontent.com/larscheng/myImg/master/blogImg/Nacos/20190709141938.png" alt="Nacos&#x90E8;&#x5206;&#x7248;&#x672C;&#x9884;&#x89C8;"></p>
<p>Nacos-server&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4ECE;github&#x4E0A;&#x4E0B;&#x8F7D;&#x5B89;&#x88C5;&#x5305;&#xFF0C;&#x5F53;&#x7136;&#x4F60;&#x4E5F;&#x53EF;&#x4EE5;&#x62C9;&#x53D6;&#x4EE3;&#x7801;&#x540E;&#x81EA;&#x884C;&#x6253;&#x5305;</p>
<p>&#x672C;&#x6587;&#x6211;&#x76F4;&#x63A5;&#x4ECE;&#x5B98;&#x7F51;&#x4E0B;&#x8F7D;Nacos-server&#xFF1A;V1.0.1(<strong>&#x4E3A;&#x907F;&#x514D;&#x65B0;&#x7248;&#x672C;V1.1.0&#x6709;&#x5176;&#x4ED6;&#x95EE;&#x9898;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x8FD8;&#x662F;&#x7528;V1.0.1</strong>)</p>
<p>&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#xFF1A; <a href="https://github.com/alibaba/nacos/releases" target="_blank">https://github.com/alibaba/nacos/releases</a></p>
<p>&#x4E0B;&#x8F7D;&#x89E3;&#x538B;&#x540E;&#x8FDB;&#x5165;<code>bin</code>&#x6587;&#x4EF6;&#x5939;&#xFF08;&#x76EE;&#x5F55;&#xFF1A;nacos-server-1.0.1\nacos\bin&#xFF09;&#xFF0C;&#x76F4;&#x63A5;&#x53CC;&#x51FB;&#x6267;&#x884C;startup.cmd&#x6587;&#x4EF6;&#xFF0C;&#x542F;&#x52A8;&#x6210;&#x529F;&#x5982;&#x4E0B;&#x56FE;&#xFF1A;</p>
<p><img src="https://raw.githubusercontent.com/larscheng/myImg/master/blogImg/Nacos/20190709142512.png" alt="Nacos&#x5355;&#x673A;&#x6A21;&#x5F0F;&#x542F;&#x52A8;&#x6210;&#x529F;"></p>
<p>&#x542F;&#x52A8;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x6B64;&#x65F6;Nacos&#x63A7;&#x5236;&#x53F0;&#x5C31;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x4E86;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x8BBF;&#x95EE;&#xFF1A;<a href="http://127.0.0.1:8848/nacos/index.html" target="_blank">http://127.0.0.1:8848/nacos/index.html</a> &#xFF0C;&#x9ED8;&#x8BA4;&#x7684;&#x8D26;&#x53F7;&#x5BC6;&#x7801;&#x4E3A;<a href="">nacos/nacos</a>&#xFF0C;&#x63A7;&#x5236;&#x53F0;&#x9875;&#x9762;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="https://raw.githubusercontent.com/larscheng/myImg/master/blogImg/Nacos/20190709143113.png" alt="nacos&#x63A7;&#x5236;&#x53F0;&#x754C;&#x9762;"></p>
<h3 id="&#x521B;&#x5EFA;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x8005;">&#x521B;&#x5EFA;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x8005;</h3>
<p>IDEA&#x4E2D;&#x521B;&#x5EFA;&#x805A;&#x5408;&#x5DE5;&#x7A0B;Nacos&#x4F5C;&#x4E3A;&#x7236;&#x5DE5;&#x7A0B;&#xFF0C;&#x5176;pom.xml&#x5982;&#x4E0B;&#xFF08;&#x91CD;&#x70B9;&#x5173;&#x6CE8;<code>dependencyManagement</code>&#x914D;&#x7F6E;&#xFF09;&#xFF1A;</p>
<pre><code class="lang-xml"><span class="php"><span class="hljs-meta">&lt;?</span>xml version=<span class="hljs-string">&quot;1.0&quot;</span> encoding=<span class="hljs-string">&quot;UTF-8&quot;</span><span class="hljs-meta">?&gt;</span></span>
<span class="hljs-tag">&lt;<span class="hljs-name">project</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0&quot;</span>
         <span class="hljs-attr">xmlns:xsi</span>=<span class="hljs-string">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
         <span class="hljs-attr">xsi:schemaLocation</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">parent</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>larscheng-learning-demo<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.study.www<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>0.0.1-SNAPSHOT<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">parent</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>0.0.1-SNAPSHOT<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">modelVersion</span>&gt;</span>4.0.0<span class="hljs-tag">&lt;/<span class="hljs-name">modelVersion</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">modules</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">module</span>&gt;</span>nacos-provide<span class="hljs-tag">&lt;/<span class="hljs-name">module</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">modules</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>Nacos<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">properties</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">java.version</span>&gt;</span>1.8<span class="hljs-tag">&lt;/<span class="hljs-name">java.version</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">spring-boot.version</span>&gt;</span>2.0.4.RELEASE<span class="hljs-tag">&lt;/<span class="hljs-name">spring-boot.version</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">spring-cloud.version</span>&gt;</span>Finchley.RELEASE<span class="hljs-tag">&lt;/<span class="hljs-name">spring-cloud.version</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">nacos.version</span>&gt;</span>0.2.2.RELEASE<span class="hljs-tag">&lt;/<span class="hljs-name">nacos.version</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">properties</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">dependencies</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.projectlombok<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>lombok<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">optional</span>&gt;</span>true<span class="hljs-tag">&lt;/<span class="hljs-name">optional</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-web<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-test<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>test<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">dependencies</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">dependencyManagement</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependencies</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-dependencies<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>${spring-cloud.version}<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">type</span>&gt;</span>pom<span class="hljs-tag">&lt;/<span class="hljs-name">type</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>import<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-dependencies<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>${spring-boot.version}<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">type</span>&gt;</span>pom<span class="hljs-tag">&lt;/<span class="hljs-name">type</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>import<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-alibaba-dependencies<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>${nacos.version}<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">type</span>&gt;</span>pom<span class="hljs-tag">&lt;/<span class="hljs-name">type</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>import<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependencies</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">dependencyManagement</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">project</span>&gt;</span>
</code></pre>
<p>&#x5728;&#x7236;&#x5DE5;&#x7A0B;Nacos&#x4E0B;&#x521B;&#x5EFA;springboot&#x5B50;&#x5DE5;&#x7A0B;nacos-provide&#xFF0C;&#x5176;pom.xml&#x6587;&#x4EF6;&#x4E3A;&#xFF1A;</p>
<pre><code class="lang-xml">
<span class="php"><span class="hljs-meta">&lt;?</span>xml version=<span class="hljs-string">&quot;1.0&quot;</span> encoding=<span class="hljs-string">&quot;UTF-8&quot;</span><span class="hljs-meta">?&gt;</span></span>
<span class="hljs-tag">&lt;<span class="hljs-name">project</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0&quot;</span> <span class="hljs-attr">xmlns:xsi</span>=<span class="hljs-string">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
         <span class="hljs-attr">xsi:schemaLocation</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">modelVersion</span>&gt;</span>4.0.0<span class="hljs-tag">&lt;/<span class="hljs-name">modelVersion</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">parent</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>Nacos<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.study.www<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>0.0.1-SNAPSHOT<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">parent</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.larscheng.www<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>nacos-provide<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>0.0.1-SNAPSHOT<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">name</span>&gt;</span>nacos-provide<span class="hljs-tag">&lt;/<span class="hljs-name">name</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">description</span>&gt;</span>Demo project for Spring Boot<span class="hljs-tag">&lt;/<span class="hljs-name">description</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">properties</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">java.version</span>&gt;</span>1.8<span class="hljs-tag">&lt;/<span class="hljs-name">java.version</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">properties</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">dependencies</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-alibaba-nacos-discovery<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">dependencies</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">build</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">plugins</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">plugin</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-maven-plugin<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">plugin</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">plugins</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">build</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">project</span>&gt;</span>
</code></pre>
<p>&#x5728;NacosProvideApplication.java&#x4E2D;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#xFF0C;&#x5E76;&#x6DFB;&#x52A0;&#x6CE8;&#x89E3;<code>@EnableDiscoveryClient</code> &#x5F00;&#x542F;&#x670D;&#x52A1;&#x6CE8;&#x518C;&#x53D1;&#x73B0;&#x529F;&#x80FD;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-meta">@RestController</span>
<span class="hljs-meta">@EnableDiscoveryClient</span>
<span class="hljs-meta">@SpringBootApplication</span>
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">NacosProvideApplication</span> </span>{

    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> </span>{
        SpringApplication.run(NacosProvideApplication.class, args);
    }

    <span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/helloNacos&quot;</span>)
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">helloNacos</span><span class="hljs-params">()</span></span>{
        <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;&#x4F60;&#x597D;&#xFF0C;nacos&#xFF01;&quot;</span>;
    }
}
</code></pre>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;application.yml&#x8FDB;&#x884C;&#x5982;&#x4E0B;&#x914D;&#x7F6E;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">server:</span>
<span class="hljs-attr">  port:</span> <span class="hljs-number">9527</span>
<span class="hljs-attr">spring:</span>
<span class="hljs-attr">  application:</span>
<span class="hljs-attr">    name:</span> nacos-provide
<span class="hljs-attr">  cloud:</span>
<span class="hljs-attr">    nacos:</span>
<span class="hljs-attr">      discovery:</span>
<span class="hljs-attr">        server-addr:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>:<span class="hljs-number">8848</span>
</code></pre>
<p>ok&#xFF0C;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x8005;&#x7684;&#x521B;&#x5EFA;&#x548C;&#x914D;&#x7F6E;&#x5DF2;&#x7ECF;&#x5B8C;&#x6210;</p>
<h3 id="&#x521B;&#x5EFA;&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;">&#x521B;&#x5EFA;&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;</h3>
<p>&#x4ECD;&#x7136;&#x5728;Nacos&#x5DE5;&#x7A0B;&#x4E0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;SpringBoot&#x9879;&#x76EE;&#x5B50;&#x5DE5;&#x7A0B;&#x547D;&#x540D;&#x4E3A;nacos-consumer&#xFF0C;&#x5176;pom&#x6587;&#x4EF6;&#x4E0E;nacos-provide&#x76F8;&#x540C;&#x3002;</p>
<p>&#x540C;&#x6837;&#x4E3A;nacos-consumer&#x589E;&#x52A0;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5185;&#x5BB9;&#x5982;&#x4E0B;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">server:</span>
<span class="hljs-attr">  port:</span> <span class="hljs-number">9528</span>
<span class="hljs-attr">spring:</span>
<span class="hljs-attr">  application:</span>
<span class="hljs-attr">    name:</span> nacos-consumer
<span class="hljs-attr">  cloud:</span>
<span class="hljs-attr">    nacos:</span>
<span class="hljs-attr">      discovery:</span>
<span class="hljs-attr">        server-addr:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>:<span class="hljs-number">8848</span>
</code></pre>
<p>&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;&#x8FD9;&#x91CC;&#x6309;&#x7167;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x4E2D;&#x7684;&#x65B9;&#x5F0F;&#x901A;&#x8FC7; RestTemplate+Ribbon&#x8FDB;&#x884C;&#x670D;&#x52A1;&#x8C03;&#x7528;,</p>
<p>NacosConsumerApplication.java&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-meta">@SpringBootApplication</span>
<span class="hljs-meta">@EnableDiscoveryClient</span>
<span class="hljs-meta">@RestController</span>
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">NacosConsumerApplication</span> </span>{

    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> </span>{
        SpringApplication.run(NacosConsumerApplication.class, args);
    }

    <span class="hljs-meta">@Autowired</span>
    <span class="hljs-keyword">private</span> RestTemplate restTemplate;

    <span class="hljs-meta">@Bean</span>
    <span class="hljs-meta">@LoadBalanced</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> RestTemplate <span class="hljs-title">getRestTemplate</span><span class="hljs-params">()</span></span>{
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> RestTemplate();
    }

    <span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/consumer&quot;</span>)
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">test1</span><span class="hljs-params">()</span> </span>{
        String result = restTemplate.getForObject(<span class="hljs-string">&quot;http://nacos-provide/helloNacos&quot;</span>,String.class);
        <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Return : &quot;</span> + result;
    }
}
</code></pre>
<p>ok&#xFF0C;&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;&#x7684;&#x521B;&#x5EFA;&#x5DE5;&#x4F5C;&#x4E5F;&#x5DF2;&#x5B8C;&#x6210;&#xFF0C;&#x4E0B;&#x9762;&#x542F;&#x52A8;&#x4E24;&#x4E2A;&#x9879;&#x76EE;&#xFF0C;&#x8FDB;&#x884C;&#x6D4B;&#x8BD5;</p>
<h3 id="&#x8C03;&#x7528;&#x6D4B;&#x8BD5;">&#x8C03;&#x7528;&#x6D4B;&#x8BD5;</h3>
<p>&#x542F;&#x52A8;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x5728;&#x65E5;&#x5FD7;&#x4E2D;&#x5E94;&#x8BE5;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5982;&#x4E0B;&#x4E24;&#x6761;&#x4FE1;&#x606F;</p>
<pre><code>o.s.c.a.n.registry.NacosServiceRegistry  : nacos registry, nacos-provide 192.168.200.1:9527 register finished

o.s.c.a.n.registry.NacosServiceRegistry  : nacos registry, nacos-consumer 192.168.200.1:9528 register finished
</code></pre><p>&#x73B0;&#x5728;&#x767B;&#x5F55;Nacos&#x63A7;&#x5236;&#x53F0;&#xFF0C;&#x4F60;&#x4F1A;&#x53D1;&#x73B0;&#x670D;&#x52A1;&#x5217;&#x8868;&#x4E2D;&#xFF0C;&#x5DF2;&#x7ECF;&#x663E;&#x793A;&#x4E86;&#x6211;&#x4EEC;&#x521A;&#x624D;&#x521B;&#x5EFA;&#x7684;&#x4E24;&#x4E2A;&#x9879;&#x76EE;&#xFF0C;&#x5E76;&#x53EF;&#x4EE5;&#x5BF9;&#x5176;&#x8FDB;&#x884C;&#x7B80;&#x5355;&#x7684;&#x76D1;&#x63A7;&#x548C;&#x7BA1;&#x7406;&#x3002;</p>
<p><img src="https://raw.githubusercontent.com/larscheng/myImg/master/blogImg/Nacos/20190709163402.png" alt="&#x670D;&#x52A1;&#x5217;&#x8868;"></p>
<p>&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x8BBF;&#x95EE;&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;&#x7684;&#x63A5;&#x53E3; <a href="http://127.0.0.1:9528/consumer&#xFF0C;" target="_blank">http://127.0.0.1:9528/consumer&#xFF0C;</a> &#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6210;&#x529F;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;</p>
<pre><code>Return : &#x4F60;&#x597D;&#xFF0C;nacos&#xFF01;
</code></pre><h3 id="&#x603B;&#x7ED3;">&#x603B;&#x7ED3;</h3>
<p>&#x5B8C;&#x6210;&#x4E0A;&#x9762;&#x7684;&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x548C;&#x6CE8;&#x518C;&#x7684;&#x6D4B;&#x8BD5;&#x540E;&#xFF0C;&#x6211;&#x7684;&#x7B2C;&#x4E00;&#x611F;&#x89C9;&#x662F;&#xFF0C;<code>&#x597D;&#x50CF;&#x53EA;&#x7528;&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x5C31;&#x53EF;&#x4EE5;&#x66FF;&#x6362;Eureka&#xFF0C;&#x597D;&#x50CF;&#x65E0;&#x7F1D;&#x652F;&#x6301;SpringCloud</code> ,<br>&#x5E26;&#x7740;&#x8FD9;&#x4E2A;&#x5185;&#x5FC3;&#x7684;&#x51B2;&#x51FB;&#x611F;&#xFF0C;&#x6211;&#x5230;&#x516C;&#x53F8;&#x7684;&#x9879;&#x76EE;&#x4E2D;&#x7B80;&#x5355;&#x8BD5;&#x4E86;&#x4E0B;&#x6C34;&#xFF0C;&#x5C45;&#x7136;&#x76F4;&#x63A5;&#x6CE8;&#x518C;&#x6210;&#x529F;&#xFF0C;&#x5E76;&#x4E14;&#x5404;&#x4E2A;&#x670D;&#x52A1;&#x4E4B;&#x95F4;&#x6B63;&#x5E38;&#x4F7F;&#x7528;&#xFF0C;&#x867D;&#x7136;&#x53EA;&#x662F;&#x5355;&#x72EC;&#x7684;&#x670D;&#x52A1;&#x6CE8;&#x518C;&#x53D1;&#x73B0;&#x529F;&#x80FD;&#x3002;&#x4F46;&#x8FD9;&#x80FD;&#x591F;&#x8BF4;&#x660E;Nacos&#x5929;&#x751F;&#x5C31;&#x65E0;&#x7F1D;&#x8854;&#x63A5;SpringCloud&#x751F;&#x6001;&#xFF08;&#x5F53;&#x7136;&#x4ED6;&#x4E5F;&#x6709;&#x5F88;&#x591A;&#x5751;&#xFF09;</p>
<p>&#x770B;Nacos&#x63A7;&#x5236;&#x53F0;&#x4E2D;&#x7684;&#x51E0;&#x5927;&#x5206;&#x7C7B;&#xFF0C;&#x660E;&#x663E;Nacos&#x7684;&#x80FD;&#x529B;&#x7EDD;&#x4E0D;&#x4EC5;&#x4EC5;&#x662F;&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;&#x8FD9;&#x4E48;&#x7B80;&#x5355;&#xFF0C;&#x66F4;&#x591A;Nacos&#x7684;&#x4F7F;&#x7528;&#x59FF;&#x52BF;&#x548C;&#x5751;&#x70B9;&#xFF0C;&#x6211;&#x4EEC;&#x672A;&#x5B8C;&#x5F85;&#x7EED;~</p>
<h3 id="&#x53C2;&#x8003;&#x611F;&#x8C22;">&#x53C2;&#x8003;&#x611F;&#x8C22;</h3>
<p><a href="https://nacos.io/zh-cn/docs/what-is-nacos.html" target="_blank">Nacos&#x5B98;&#x65B9;&#x624B;&#x518C;</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Nacos-Introduction.html" class="navigation navigation-prev " aria-label="Previous page: Nacos介绍">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Nacos-OpenFeign.html" class="navigation navigation-next " aria-label="Next page: Nacos+OpenFeign">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Nacos注册中心","level":"3.1.2","depth":2,"next":{"title":"Nacos+OpenFeign","level":"3.1.3","depth":2,"path":"Nacos/Nacos-OpenFeign.md","ref":"Nacos/Nacos-OpenFeign.md","articles":[]},"previous":{"title":"Nacos介绍","level":"3.1.1","depth":2,"path":"Nacos/Nacos-Introduction.md","ref":"Nacos/Nacos-Introduction.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["expandable-chapters","livereload"],"pluginsConfig":{"expandable-chapters":{},"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Nacos/Nacos-Registration.md","mtime":"2019-07-09T08:58:31.418Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-09T07:20:35.937Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

